<?php

//这是浏览项目的视图

function admin_project_view($sortid,$sort_son){
?>
<ul <?php echo "id='pview".$sortid."'"; ?> >
	<li class="project_total_li"><div class="project_total">总分    </div></li>
	
	<?php
	if(isset($sort_son[0]))
	{
		foreach ($sort_son as $key => $value) {
		 	echo "<li>
		 			<a href=# onclick=\"getproject_xx(".$value['sortid'].")\" 
		 				class=\"project_item\">".$value['sortname']."(".$value['sortpoint'].")
		 			</a>
		 			<div class='project_item_o'>
		 				<a href=# onclick='displayp(".$value['sortid'].")' class='project_item_c'>
		 				</a>
		 			</div>
		 		</li>";

		 	if(get_sortson($value['sortid']))
		 	{
		 		$thissortson=get_sortson($value['sortid']);
		 		admin_project_view($value['sortid'],$thissortson);
		 	}
		 	else
		 	{
		 		admin_project_view($value['sortid'],0);
		 	}
		 }
	} 
	?>

	<li><a href=# onclick=<?php echo "'addproject_xx(".$sortid.")'" ?> class="project_item">增加</a></li>
</ul>

<?php
}
?>